/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Universidad de La Frontera
 * License Type: Academic
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class AdministracionCriteria extends AbstractORMCriteria {
	public final IntegerExpression id;
	public final StringExpression usuario;
	public final StringExpression clave;
	
	public AdministracionCriteria(Criteria criteria) {
		super(criteria);
		id = new IntegerExpression("id", this);
		usuario = new StringExpression("usuario", this);
		clave = new StringExpression("clave", this);
	}
	
	public AdministracionCriteria(PersistentSession session) {
		this(session.createCriteria(Administracion.class));
	}
	
	public AdministracionCriteria() throws PersistentException {
		this(orm.Trabajo3pdsPersistentManager.instance().getSession());
	}
	
	public ClienteCriteria createClienteCriteria() {
		return new ClienteCriteria(createCriteria("ORM_Cliente"));
	}
	
	public Administracion uniqueAdministracion() {
		return (Administracion) super.uniqueResult();
	}
	
	public Administracion[] listAdministracion() {
		java.util.List list = super.list();
		return (Administracion[]) list.toArray(new Administracion[list.size()]);
	}
}

